<?php
class Goods_map_cpt_model extends CI_Model
{
    private $table = 'goods_map_cpt';
    
    
     /**
     *根据goods_id的查找所需内容
     * @param unknown $id
     */
    function findByGoodsId($id){
        
        $this->db->select('macs.mac_id');
        $this->db->from('goods_map_cpt');
        $this->db->join('macs','goods_map_cpt.uid=macs.teller_uid','inner');
        $this->db->where('goods_map_cpt.goods_id',$id);
        return  $this->db->get();
    }
}